import service from '@/utils/request'
// @Tags MediaFiles
// @Summary 创建mediaFiles表
// @Security ApiKeyAuth
// @Accept application/json
// @Produce application/json
// @Param data body model.MediaFiles true "创建mediaFiles表"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"创建成功"}"
// @Router /mediaFiles/createMediaFiles [post]
export const createMediaFiles = (data) => {
  return service({
    url: '/mediaFiles/createMediaFiles',
    method: 'post',
    data
  })
}

// @Tags MediaFiles
// @Summary 删除mediaFiles表
// @Security ApiKeyAuth
// @Accept application/json
// @Produce application/json
// @Param data body model.MediaFiles true "删除mediaFiles表"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"删除成功"}"
// @Router /mediaFiles/deleteMediaFiles [delete]
export const deleteMediaFiles = (params) => {
  return service({
    url: '/mediaFiles/deleteMediaFiles',
    method: 'delete',
    params
  })
}

// @Tags MediaFiles
// @Summary 批量删除mediaFiles表
// @Security ApiKeyAuth
// @Accept application/json
// @Produce application/json
// @Param data body request.IdsReq true "批量删除mediaFiles表"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"删除成功"}"
// @Router /mediaFiles/deleteMediaFiles [delete]
export const deleteMediaFilesByIds = (params) => {
  return service({
    url: '/mediaFiles/deleteMediaFilesByIds',
    method: 'delete',
    params
  })
}

// @Tags MediaFiles
// @Summary 更新mediaFiles表
// @Security ApiKeyAuth
// @Accept application/json
// @Produce application/json
// @Param data body model.MediaFiles true "更新mediaFiles表"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"更新成功"}"
// @Router /mediaFiles/updateMediaFiles [put]
export const updateMediaFiles = (data) => {
  return service({
    url: '/mediaFiles/updateMediaFiles',
    method: 'put',
    data
  })
}

// @Tags MediaFiles
// @Summary 用id查询mediaFiles表
// @Security ApiKeyAuth
// @Accept application/json
// @Produce application/json
// @Param data query model.MediaFiles true "用id查询mediaFiles表"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"查询成功"}"
// @Router /mediaFiles/findMediaFiles [get]
export const findMediaFiles = (params) => {
  return service({
    url: '/mediaFiles/findMediaFiles',
    method: 'get',
    params
  })
}

// @Tags MediaFiles
// @Summary 分页获取mediaFiles表列表
// @Security ApiKeyAuth
// @Accept application/json
// @Produce application/json
// @Param data query request.PageInfo true "分页获取mediaFiles表列表"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"获取成功"}"
// @Router /mediaFiles/getMediaFilesList [get]
export const getMediaFilesList = (params) => {
  return service({
    url: '/mediaFiles/getMediaFilesList',
    method: 'get',
    params
  })
}

// @Tags MediaFiles
// @Summary 不需要鉴权的mediaFiles表接口
// @Accept application/json
// @Produce application/json
// @Param data query exampleReq.MediaFilesSearch true "分页获取mediaFiles表列表"
// @Success 200 {object} response.Response{data=object,msg=string} "获取成功"
// @Router /mediaFiles/getMediaFilesPublic [get]
export const getMediaFilesPublic = () => {
  return service({
    url: '/mediaFiles/getMediaFilesPublic',
    method: 'get',
  })
}
